#ifndef _MAINWINDOW_H_
#define _MAINWINDOW_H_

#include <QMainWindow>
#include <QModelIndex>

class QTreeView;
class QListWidget;

namespace TuboxUi {

class MainWindow : public QMainWindow {
	Q_OBJECT
public:
	MainWindow(const QString &Path);
	~MainWindow();
public slots:
	QString fileDownloaded(const QString& name);
	QString fileCreated(const QString& name);
	QString fileUploaded(const QString& name);
	QString fileRemoved(const QString& name);
	QString fileRenamed(const QString& oldName, const QString& newName);
	QString folderCreated(const QString& name);
	QString folderRenamed(const QString& oldName, const QString& newName);

	void disconnect();
	void copy();
	void move();
	void remove();
	void rename();
	void createFolder();
private:
	QString path;
	QTreeView *tree;
	QListWidget *updates;
	void updateList();
signals:
};

}

#endif // _MAINWINDOW_H_
